import 'package:app/util/http.dart';
import 'package:flutter/material.dart';


class ProcessOutputApi{

  BuildContext? context;

  static ProcessOutputApi of(BuildContext? context) {
    ProcessOutputApi processOutputApi = ProcessOutputApi();
    processOutputApi.context = context;
    return processOutputApi;
  }



  /// 根据站点码，查询站点物料清单
  Future<dynamic> findStationPickList(code) async{
    return ApiService.of(context).get('lgs/processOutput/findStationPickList/'+code);
  }


  /// 根据站点码，查询站点库存物料清单
  Future<dynamic> findStationInventory(code) async{
    return ApiService.of(context).get('lgs/processOutput/findStationInventory/'+code);
  }

  /// 根据站点码，查询站点物料清单
  Future<dynamic> checkStationContainer(code) async{
    return ApiService.of(context).get('lgs/processOutput/checkStationContainer/'+code);
  }

  /// 根据托盘号，清空物料信息
  Future<dynamic> clearContainerInventory(code) async{
    return ApiService.of(context).get('lgs/processOutput/clearContainerInventory/'+code);
  }

  /// 开始配送
  Future<dynamic> startDelivery(code) async{
    return ApiService.of(context).put('lgs/processOutput/startDelivery/',code);
  }

}